// TOWN SCRIPT
//    Town 29: Hatherond

// This is the special encounter script for this town.
// The states INIT_STATE, EXIT_STATE, and START_STATE have
// meanings that are described in the documenation. States you write
// yourself should be numbered from 10-100.

begintownscript;

variables;

short i,j,k,r1,choice;

body;

beginstate INIT_STATE;
	set_name(30,"Oslaf");
break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
// This state is called every turn the party is in this town.
break;

beginstate 10;
	message_dialog("Over the center of the city flies a white flag emblazoned with the image of a grey, menacing wolf.","");
	block_entry(1);
break;

beginstate 44;
	if (get_flag(29,0) == 250)
		end();
	message_dialog("A small note on the desk reads:",
	  "_On business to Hetware. Will be back within a week. Leave messages here._");
	set_flag(29,0,250);
break;

beginstate 45;
	reset_dialog();
	add_dialog_str(0,"A wondrous, adventurous land seems to lie just outside the premises of the city, by land or by sea. Do you travel beyond?",0);
	add_dialog_str(5,"Warning - _Yes_ will exit the scenario.",0);
	add_dialog_choice(0,"No.");
	add_dialog_choice(1,"Yes.");
	choice = run_dialog(1);
	if (choice == 1)
		set_state_continue(46);
	if (choice == 2)
		set_state_continue(47);
break;

beginstate 46;
	block_entry(1);
break;

beginstate 47;
	reset_dialog();
	add_dialog_str(0,"Days of exciting adventure and exploration await you. Still, every once in a while, you get peculiar feelings, as though you had seen the same land and had the same adventures many, many times before...",0);
	add_dialog_str(1," * * *",0);
	add_dialog_str(2,"The river flows on, careless of the leaves that flutter and drown in its wake.",0);
	add_dialog_choice(0,"OK.");
	choice = run_dialog(1);
	end_scenario(1);
break;


beginstate 60;
	change_outdoor_location(0,2,25,29);
break;	

beginstate 61;
	change_outdoor_location(0,2,29,26);
break;	

beginstate 62;
	change_outdoor_location(0,2,33,29);
break;	

beginstate 63;
	change_outdoor_location(0,2,29,32);
break;	